package com.ebao.po.mail;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ebao.constants.EmailType;
import com.ebao.constants.SendType;

@SuppressWarnings("serial")
@Entity
@Table(name = "T_Email_Record")
public class TEmailRecord implements Serializable {

	private Long id;
	private String emailFrom;	// 来自
	private String emailTo;		// 收件人
	private String subject;		// 标题
	private String content;		// 内容
	private String[] attachments;	// 附件URL
	private Boolean hassent;	// 状态(已发送/未发送)
	private EmailType type;		// 邮件类型
	private String sendDate;	// 发送日期
	private SendType toType;	// 发布对象类型

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEmailFrom() {
		return emailFrom;
	}

	public void setEmailFrom(String emailFrom) {
		this.emailFrom = emailFrom;
	}

	public String getEmailTo() {
		return emailTo;
	}

	public void setEmailTo(String emailTo) {
		this.emailTo = emailTo;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String[] getAttachments() {
		return attachments;
	}

	public void setAttachments(String[] attachments) {
		this.attachments = attachments;
	}

	public Boolean getHassent() {
		return hassent;
	}

	public void setHassent(Boolean hassent) {
		this.hassent = hassent;
	}

	public EmailType getType() {
		return type;
	}

	public void setType(EmailType type) {
		this.type = type;
	}

	@Column(length = 19)
	public String getSendDate() {
		return sendDate;
	}

	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}

	public SendType getToType() {
		return toType;
	}

	public void setToType(SendType toType) {
		this.toType = toType;
	}

}
